using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WPCoco.Tasks
{
    public class EaseCicleFunction : EaseFunction
    {
        public EaseCicleFunction(float waves)
        {
            Waves = waves;
        }

        float waves = 1;

        public float Waves
        {
            get { return waves; }
            set { waves = value; }
        }

        public override float Evaluate(float time)
        {
            return (float)Math.Abs(Math.Sin(waves * Math.PI * time));
        }
    }
}
